import "default-passive-events"
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 引入elementplus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import { createPinia } from "pinia";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import * as tool from '@/utils/tools.js'
import * as moment from 'moment'
// @ts-ignore
import v3ImgPreview from 'v3-img-preview'
const state = createPinia();
const app = createApp(App);
app.use(store);
//使用pinia
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(state);
app.use(router);
app.use(ElementPlus);
app.use(v3ImgPreview, {/* 全局配置 */})
// app.config.globalProperties.$tool = tool;
app.config.globalProperties.$moment = moment;
app.mount("#app");
